package org.example.loop;

/**
 * @author: knowno
 * @create: 2025-09-09 15:52
 * @Version 1.0
 **/
public class TestLoop4 {
    public static void main(String[] args) {
        int [] array = {1,2,3};

        //foreach 实际语法还是for: (变量类型 变量名:数组名)
        for (int i:array) {
            System.out.println(i);
        }

    }
}
